package routers

import (
	"book_manage/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/list", &controllers.OrdersController{}, "GET:List;OPTIONS:List")
	beego.Router("/update", &controllers.OrdersController{}, "GET:Update;OPTIONS:Update;POST:Update")
	beego.Router("/del", &controllers.OrdersController{}, "OPTIONS:Del;POST:Del")
}
